package net.sf.ivyide.idea;

import com.intellij.openapi.application.Application;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.progress.ProcessCanceledException;
import com.intellij.openapi.progress.ProgressIndicator;
import com.intellij.openapi.progress.ProgressManager;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.vfs.VirtualFile;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

public class IntellijUtil {

    public static String getBaseDir(final Project project) {
        VirtualFile baseDir = project.getBaseDir();
        return baseDir != null ? baseDir.getPath() : "";
    }
}
